import request from '@/utils/request'

// 查询待办任务列表
export function listPendingTask(query) {
  return request({
    url: '/house/pendingTask/list',
    method: 'get',
    params: query
  })
}

// 查询待办任务详细
export function getPendingTask(pendingId) {
  return request({
    url: '/house/pendingTask/' + pendingId,
    method: 'get'
  })
}

// 新增待办任务
export function addPendingTask(data) {
  return request({
    url: '/house/pendingTask',
    method: 'post',
    data: data
  })
}

// 修改待办任务
export function updatePendingTask(data) {
  return request({
    url: '/house/pendingTask',
    method: 'put',
    data: data
  })
}

// 删除待办任务
export function delPendingTask(pendingId) {
  return request({
    url: '/house/pendingTask/' + pendingId,
    method: 'delete'
  })
}
